import {Provider} from "../base";
import {ethers} from 'ethers';
import Config from '@/assets/js/config/load';

const config = Config();

let abi = config.fomo.bankAbi;
let contractAddress = config.fomo.bankAddress;
let provider = Provider.ETSC;
let contract = new ethers.Contract(contractAddress, abi, provider);

/*
 * 投资
 */
export async function bID_() {
    return await contract.bID_();
}

export async function bank_(bID_) {
    return await contract.bank_(bID_);
}

export async function bankPlyr_(bID_, pID_) {
    return await contract.bank_(bID_, pID_);
}
